package com.ruoyi.siyun.mapper;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SyAppUsers;
import com.ruoyi.siyun.domain.SyAppBlacklist;

/**
 * app用户Mapper接口
 * 
 * @author ruoyi
 * @date 2024-12-23
 */
public interface SyAppUsersMapper 
{
    /**
     * 查询app用户
     * 
     * @param id app用户主键
     * @return app用户
     */
    public SyAppUsers selectSyAppUsersById(Long id);

    /**
     * 查询app用户列表
     * 
     * @param syAppUsers app用户
     * @return app用户集合
     */
    public List<SyAppUsers> selectSyAppUsersList(SyAppUsers syAppUsers);

    /**
     * 新增app用户
     * 
     * @param syAppUsers app用户
     * @return 结果
     */
    public int insertSyAppUsers(SyAppUsers syAppUsers);

    /**
     * 修改app用户
     * 
     * @param syAppUsers app用户
     * @return 结果
     */
    public int updateSyAppUsers(SyAppUsers syAppUsers);

    /**
     * 删除app用户
     * 
     * @param id app用户主键
     * @return 结果
     */
    public int deleteSyAppUsersById(Long id);

    /**
     * 批量删除app用户
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSyAppUsersByIds(Long[] ids);

    int updateSyAppUsersStatus(SyAppUsers syAppUsers);

    int updateUser(SyAppUsers user);

//    public SysUser checkUserNameUnique(String userName);

    /**
     * 批量新增黑名单
     *
     * @param syAppBlacklistList 黑名单列表
     * @return 结果
     */
//    public int batchSyAppBlacklist(List<SyAppBlacklist> syAppBlacklistList);


    /**
     * 通过app用户主键添加黑名单
     *
     * @param syAppBlacklist 黑名单信息
     * @return 结果
     */
    int insertBlacklistByAppUserId(SyAppBlacklist syAppBlacklist);


    /**
     * 通过app用户主键删除黑名单信息
     *
     * @param id app用户ID
     * @return 结果
     */
    public int deleteSyAppBlacklistByUserId(Long id);

    SyAppUsers selectSyAppUsersByusername(String username);
}
